package cn.com.jenson.entity.main;

import cn.com.jenson.common.BasicEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.util.Date;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity
public class Story extends BasicEntity {
    private String img;
    private String title;
    private String name;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;
    @Column(columnDefinition = "text")
    private String context;
    private String text;
}
